/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.order;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.common.service.CrudService;
import com.idenger.modules.edu.entity.order.EduOrderDetails;
import com.idenger.modules.edu.dao.order.EduOrderDetailsDao;

/**
 * 订单邮寄信息Service
 * @author 兰正军
 * @version 2017-12-21
 */
@Service
@Transactional(readOnly = true)
public class EduOrderDetailsService extends CrudService<EduOrderDetailsDao, EduOrderDetails> {

	public EduOrderDetails get(String id) {
		return super.get(id);
	}
	
	public List<EduOrderDetails> findList(EduOrderDetails eduOrderDetails) {
		return super.findList(eduOrderDetails);
	}
	
	public Page<EduOrderDetails> findPage(Page<EduOrderDetails> page, EduOrderDetails eduOrderDetails) {
		return super.findPage(page, eduOrderDetails);
	}
	
	@Transactional(readOnly = false)
	public void save(EduOrderDetails eduOrderDetails) {
		super.save(eduOrderDetails);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduOrderDetails eduOrderDetails) {
		super.delete(eduOrderDetails);
	}
	
	public EduOrderDetails findByOrderId(String orderId){
		return dao.findByOrderId(orderId);
	}
	
}